﻿@model MvcApplication6.Models.HomeModel
@using MvcApplication6.Models
@using MvcPaging
@using MvcApplication6.common
<div class="pr-head"><span>Camera ANALOG</span></div>
    <ul class="pr-list" id="list1">

             @foreach (var product in Model.ProductListModel)
        {
            <li class="pr-item">
			    <a class="pr-mask" href="product-detail.html">
				    <div class="pr-img" style="background-image: url('../../Content/images/resources/cover5.jpg')"></div>
                    <div class="buy-tag">Sale</div>
				    <a class="pr-btn">Add</a>
			    </a>
			    <div class="pr-info">
				    <span class="pr-name">@product.Name</span>
				    <span class="pr-desc">Color 1/3'' SONY</span>
				    <span class="pr-price"><a href="product-detail.html">Giá: @product.Price</a></span>
			    </div>
		    </li>
    
        }


        

        
		
	</ul>
    
    <ul>
        @Html.Raw(Html.Pager(
            new Options
            {
                PageSize = 5,
                TotalItemCount = Model.totalRecord,
                CurrentPage = 1,
                ItemTexts = new ItemTexts() { Next = "Next", Previous = "Previous" },
                ItemIcon = new ItemIcon() { First = "icon-backward", Previous = "icon-chevron-left", Next = "icon-chevron-right", Last = "icon-forward" },
                TooltipTitles = new TooltipTitles() { Next = "Next page {0}", Previous = "Previous page {0}", Page = "Go to page {0}" },
                Size = Size.normal,
                Alignment = Alignment.centered,
                IsShowControls = true,
                IsShowFirstLast = true,
                IsShowPages = true
            }, new { employee_name = ViewData["employee_name"] }))
	</ul>